home *** CD-ROM | disk | FTP | other *** search
- Path: haven.ios.com!chomko
- From: chomko@haven.ios.com (Eric Chomko)
- Newsgroups: comp.sys.m68k
- Subject: Re: 68000 wait states
- Date: 4 Jan 1996 17:44:47 GMT
- Organization: Internet Online Services
- Message-ID: <4ch3mf$sc4@news.ios.com>
- References: <4c6r66$817@masala.cc.uh.edu> <30E8501B.2FC8@9bit.qc.ca>
- NNTP-Posting-Host: haven.ios.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Gilles Turgeon (turgeon@9bit.qc.ca) wrote:
- : > ... I realized that my RAM/EPROM are slow enough that I am going to need =
- : to
- : > insert some wait states (my reasoning is this: I have a 10 MHz clock - or=
-
- : > a tick every 100 ns. My memory devices have an access time of 120 ns or
- : >=A01.2 clock cycles, therefore, I will need to insert a delay of 2 clock
- : >=A0cycles/200 ns before I assert a DTACK from the memory devices. Correct?=
- : )
-
- : No. The 68000 take 2 full clock cycle between *AS assertion and the data r=
- : ead or write. =
-
- : So you dont need wait state.
-
- : S2 S4 S6 =
-
- : _ _ _ _ _ _
- : clk _| |_| |_| |_| |_| |_| | =
-
-
- : <------->
- : _______ _______
- : *AS |___________|
-
- : ________________ ________
- : *DTACK |______|
- : ^ 68k take data here
-
-
- : > My question is: Is the best way to do this to take a binary counter
- : > (for example: a 74LS161), connect it to the system clock, program it to
- : > countdown for 2 clock cycles whenever the memory is accessed and assert
- : > DTACK whenever this timer has expired? Will this work, is there a
- : > better way (using conventional parts, I don't have a PAL/etc programmer),=
-
- : > or do I have absolutely no idea what I'm talking about? ;)
-
- : Counters are ok. Shift registers are also ok. If you read french, I can s=
- : end you a =
-
- : copy of my class lectures on this subject. I write on timings, wait states =
- : and others =
-
- : subjects.
-
- A simpler solution for simply dividing the clock speed is to use a flip-flop.
- Two pulses in one pulse out. The old SWTPC 6800 used that circuit for
- exactly what your concern about memory entails. In fact the first hack
- on that machine was to jumper around the flip-flop and unleash the
- mighty 1.7432MHz 6800 and let it run at full speed! But enough about
- that or I'll have to continue this thread on alt.folklore.computers.
-
- But I think the fellow's
- suggestion above is correct and that you neerdd not worry about the clock
- speed.
-
- Eric
-